﻿using System;
using MongoDB.Bson.Serialization.Attributes;

namespace QPEngine
{
    [BsonIgnoreExtraElements]
    public class PlayerInfo
    {
        [BsonIgnore]
        public PlayerState state = new PlayerState();
        /// <summary>
        /// 账号
        /// </summary>
        public long Account { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 单位ID
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// session ID
        /// </summary>
        [BsonIgnore]
        public string SessionID { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public byte Sex { get; set; }
        /// <summary>
        /// 金币
        /// </summary>
        public ulong Gold { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public ulong PhoneNumber { get; set; }
        /// <summary>
        /// 最后使用IP
        /// </summary>
        public string LastUsedIP { get; set; }
        /// <summary>
        /// 注册IP
        /// </summary>
        public string RegisterIP { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public string RegisterTime { get; set; }
        /// <summary>
        /// 上线时间
        /// </summary>
        public string UpLineTime { get; set; }
        /// <summary>
        /// 下线时间
        /// </summary>
        public string DownLineTime { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public uint Level { get; set; }
        /// <summary>
        /// 设备唯一码
        /// </summary>
        public string DeviceUniqueIdentifier { get; set; }
        /// <summary>
        /// 设备名字
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 设备类型
        /// </summary>
        public string DeviceType { get; set; }
    }
}
